package com.springboot.yuangong.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.yuangong.entity.UserRole;
import com.springboot.yuangong.entity.vo.UserVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2022-05-10
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 根据用户账号获取用户角色
     * @param userid
     * @return
     */
    UserVo getUserRoleById(@Param("userid") Integer userid);
}
